/*
Copyright (C) 2022-2024 Inspur Corp.

SPDX-License-Identifier: Apache-2.0
*/
package controller

import (
	"icep/common/logger"
	"icep/common/rdb"
	"icep/service"
)

var log = logger.GetLogger("controller")

type IcepController struct {
	IcepService *service.IcepService
	lockTool    *rdb.LockTool
}

func NewIcepController(icepService *service.IcepService) *IcepController {
	return &IcepController{
		IcepService: icepService,
		lockTool:    rdb.NewLockTool(),
	}
}
